package com.ming.springboot.vo;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * Created by mqsi on 2022/5/9 9:41
 */
@Configuration
@PropertySource(value = "classpath:student.properties", ignoreResourceNotFound = true)
@ConfigurationProperties(prefix = "spring.boot.student")
public class Student {
	/**
	 * 学号
	 */
	private String sno;
	/**
	 * 姓名
	 */
	private String sname;
	/**
	 * 年龄
	 */
	private Integer age;
	/**
	 * 地址
	 */
	private String address;

	public String getSno() {
		return sno;
	}

	public void setSno(String sno) {
		this.sno = sno;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Override
	public String toString() {
		return "Student{" +
				"sno='" + sno + '\'' +
				", sname='" + sname + '\'' +
				", age=" + age +
				", address='" + address + '\'' +
				'}';
	}
}
